determine output of system